// components/Head/head.js
Component({
    /**
     * Component properties
     */
    properties: {

    },

    /**
     * Component initial data
     */
    data: {

    },

    /**
     * Component methods
     */
    methods: {
        showModal(e) {
            console.log(e)
            this.setData({
              modalName: e.currentTarget.dataset.target
            })
          },
          hideModal(e) {
            this.setData({
              modalName: null
            })
          },
          tabSelect(e) {
            console.log(e);
            this.setData({
              TabCur: e.currentTarget.dataset.id,
              scrollLeft: (e.currentTarget.dataset.id - 1) * 60
            })
          },
    }
})
